<?php
namespace modules\admin\controller;


use core\library\Input;

class LoginController
{
    public function actionLogin() {
        return ['login'=>'login'];
    }
    public function actionDoLogin(Input $input) {
        $input->session('userid', 'caohd');
        return ['code'=>0, 'msg'=>'登陆成功', 'data'=>[]];
    }
}